<template>
  <div id="ranking-board">
    <div class="ranking-board-title">租户规模排行</div>
    <dv-scroll-ranking-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'RankingBoard',
  data () {
    return {
      config: {
        data: [
          {
            name: '租户A',
            value: 55
          },
          {
            name: '租户B',
            value: 120
          },
          {
            name: '租户C',
            value: 78
          },
          {
            name: '租户D',
            value: 66
          },
          {
            name: '租户E',
            value: 80
          },
          {
            name: '租户F',
            value: 45
          },
          {
            name: '租户G',
            value: 29
          },
          {
            name: '租户H',
            value: 29
          },
          {
            name: '租户I',
            value: 89
          },
        ],
        rowNum: 9
      }
    }
  }
}
</script>

<style lang="less">
#ranking-board {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 3px blue;
  display: flex;
  flex-direction: column;
  background-color: rgba(6, 30, 93, 0.5);
  border-top: 2px solid rgba(1, 153, 209, .5);
  box-sizing: border-box;
  padding: 0px 30px;

  .ranking-board-title {
    font-weight: bold;
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 16px;
  }

  .dv-scroll-ranking-board {
    flex: 1;
  }
}
</style>
